/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-02-10 09:45:07
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-02-10 10:51:11
 * @FilePath: /2024-4-20-pipe/named_pipe/client.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "named_pipe.hpp"

// client是客户端 只管写入即可！
int main()
{
    named_pipe fifo(com_path,User);
    if(fifo.OpenForWrite())
    {
        while (true)
        {
            cout<<"Please Enter:>";
            string message;
            getline(cin,message);
            fifo.WriteNamedPipe(message);
        }
        
    }
    return 0;
}